﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace reflex
{
    [Description("学生类")]
    public class StudentInfo
    {
        private string _studentNo;
        private int _id { get; set; }
        public int Age { get; set; }
        public string NickName { get; set; }

        public void Run()
        {
            Console.WriteLine($"我是{NickName},我每天都要晨跑");
        }

        public void Run2(int age)
        {
            Console.WriteLine($"我是{NickName},我今年{age}，我每天都要晨跑");
        }

        private string Run3(string nickName)
        {
            return $"我是{nickName}，我是私有方法";
        }

        public StudentInfo()
        {

        }

        public StudentInfo(string nickName,int age)
        {
            NickName = nickName;
            Age = age;
        }
    }
}
